package vboot.core.module.sys.portal.main;

import lombok.Getter;
import lombok.Setter;
import vboot.core.common.entity.BaseMainEntity;
import vboot.core.module.sys.org.root.SysOrg;

import javax.persistence.*;
import java.util.List;

@Entity
@Getter
@Setter
public class SysPortalMain extends BaseMainEntity {

    private Integer ornum;

    private String notes;

    @ManyToMany
    @JoinTable(name = "sys_portal_main_viewer", joinColumns = {@JoinColumn(name = "mid")},
            inverseJoinColumns = {@JoinColumn(name = "oid")})
    private List<SysOrg> viewers;
}